import java.sql.Connection;

public abstract class BalanceManager {

	private Connection connection;
	private PropertyDBManager propertyDBManager;

	public BalanceManager(Connection initConnection, PropertyDBManager propertyDBManager) {
		// constructor - initialiaze connection
		// use this connection in all functions of AccountManager

		setConnection(initConnection);
		setPropertyDBManager(propertyDBManager);
	}

	public Connection getConnection() {
		return connection;
	}

	public void setConnection(Connection connection) {
		this.connection = connection;
	}

	public abstract boolean addBalance(Balance balance) throws DBManagerException;

	public abstract Balance getBalanceById(long balance_id) throws DBManagerException;

	public void setPropertyDBManager(PropertyDBManager propertyDBManager) {
		this.propertyDBManager = propertyDBManager;
	}

	public PropertyDBManager getPropertyDBManager() {
		return propertyDBManager;
	}

}
